package com.kk;

import javafx.application.Application;
import javafx.application.ConditionalFeature;
import javafx.application.Platform;
import javafx.stage.Screen;
import javafx.stage.Stage;

public class Launch1 extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
//        设置窗口关闭，后台仍然运行
        Platform.setImplicitExit(false);

        System.out.println(Platform.isSupported(ConditionalFeature.SCENE3D));

        Screen screen = Screen.getPrimary();
        System.out.println("screen.getBounds() = " + screen.getBounds());
//        获取视觉边界
        System.out.println("screen.getVisualBounds() = " + screen.getVisualBounds());
        System.out.println("screen.getDpi() = " + screen.getDpi());
        primaryStage.show();
    }
}
